<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://minglie.gitee.io/mingpage/static/public/jquery/zepto/1.2.0/zepto.min.js"></script>
    <script src="../../lib/ming_mock/ming_mock_vue.js"></script>
    <script src="../../lib/ming_mock/ming_router.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
    </style>
    <title>Document</title>
</head>
<body>
<div style="display: flex;margin: 0 auto;width: 80vw">
    <ming-input  onsend="onsend"></ming-input>
</div>
</body>
</html>

<script>
    function onsend(selectData){

        alert(JSON.stringify(selectData))
    }


</script>


<script type="module">
    import MingInput from "./ming-input.js";
    MingRouter.registWebComponent(MingInput);

    setTimeout(()=>{
        document.querySelector("ming-input").wrapWebComponent.hide();
    },3000)

</script>